


from DeepSeekAPI import *

import time,json

from config import api_key, base_url

t0 = time.time()

# 调用测试
t = TestAPI(api_key, base_url)



def DoChatTest(str_ask):


    messages= [
        {"role": "system", "content": "你是一位优秀的助理"},
        {"role": "user", "content": str_ask}
    ]
    # 调用测试--test_api1 输入提问语句

    res = t.test_api1(messages=messages) # 测试直接聊天
    print(f"Assist: {res}")
    print("\n" * 2)





if __name__ == "__main__":
    
    while True:
        str_ask_input = input("You:")
        DoChatTest(str_ask_input)